import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author Yuxh
 * @date 2016/4/24
 */
public class Test {
    public static void main(String[] args){
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        LocalDateTime current = LocalDateTime.now();
        System.out.println(formatter.format(current));
    }
}
